<?php
/*
 * code to flag customer records as deleted
*/
session_start();
if(!isset($_SESSION['userid'])){
	header("location: ../login.php");
}
else
{
	include("../inc_files/utils/dbconnection.php");

	$query = "UPDATE customers SET Deleted = 1  WHERE CustomerID=" . $_POST["recordid"].";";
	$mysqli->query( $query );

	//tidy up database connection
	$mysqli->close();
	
	echo success;
	
}

?>